package com.wwwarehouse.taskcenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by clannad.shao on 2017/11/22.
 * Description:
 */

public class MediaBean implements Parcelable{

    private String mediaName;
    private String relatedUrl;

    public MediaBean() {
    }

    protected MediaBean(Parcel in) {
        mediaName = in.readString();
        relatedUrl = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mediaName);
        dest.writeString(relatedUrl);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public String toString() {
        return "MediaBean{" +
                "mediaName='" + mediaName + '\'' +
                ", relatedUrl='" + relatedUrl + '\'' +
                '}';
    }

    public static final Creator<MediaBean> CREATOR = new Creator<MediaBean>() {
        @Override
        public MediaBean createFromParcel(Parcel in) {
            return new MediaBean(in);
        }

        @Override
        public MediaBean[] newArray(int size) {
            return new MediaBean[size];
        }
    };

    public String getMediaName() {
        return mediaName;
    }

    public void setMediaName(String mediaName) {
        this.mediaName = mediaName;
    }

    public String getRelatedUrl() {
        return relatedUrl;
    }

    public void setRelatedUrl(String relatedUrl) {
        this.relatedUrl = relatedUrl;
    }
}
